import request from '@/utils/request'

// 查询生产班组列表
export function listBzTeam(query) {
  return request({
    url: '/scxx/bzTeam/list',
    method: 'get',
    params: query
  })
}

// 查询生产班组详细
export function getBzTeam(bzCode) {
  return request({
    url: '/scxx/bzTeam/' + bzCode,
    method: 'get'
  })
}

// 新增生产班组
export function addBzTeam(data) {
  return request({
    url: '/scxx/bzTeam',
    method: 'post',
    data: data
  })
}

// 修改生产班组
export function updateBzTeam(data) {
  return request({
    url: '/scxx/bzTeam',
    method: 'put',
    data: data
  })
}

// 删除生产班组
export function delBzTeam(bzCode) {
  return request({
    url: '/scxx/bzTeam/' + bzCode,
    method: 'delete'
  })
}

// 查询生产班组详细
export function getScdy(query) {
  return request({
    url: '/scxx/bzTeam/listScdy',
    method: 'get',
    params: query
  })
}
